<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jstl fn:join()函数</title>
</head>
<body>
	<div style="margin: auto; width: 90%">
		<h2>fn:join()函数示例</h2>
		<hr />
		<c:set var="string1" value="This is first String." />
		<c:set var="string2" value="${fn:split(string1, ' ')}" />
		<c:set var="string3" value="${fn:join(string2, '-')}" />
		<p>最终组成字符串数组 2: ${string2}</p>
		<p>最终组成字符串 3: ${string3}</p>
	</div>
</body>
</html>